function Point(posX, posY)
{
    this.X = posX;
    this.Y = posY;
}

Point.prototype.GetX = function()
{
    return this.X;
}

Point.prototype.GetY = function()
{
    return this.Y;
}

Point.prototype.SetX = function(posX)
{
    this.X = posX;
}

Point.prototype.SetY = function(posY)
{
    this.Y = posY;
}

Point.prototype.SetPoint = function(point)
{
    this.X = point.GetX();
    this.Y = point.GetY();
}